﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Data.Objects;
using JChatCore.Log;
namespace JChatData.LogMap
{
   public class LogMap:EntityConfiguration<Log>
    {
       /// <summary>
       /// Mapping to entity
       /// Code by Linh Pham
       /// </summary>
       public LogMap()
       {
           HasKey(c => c.LogID);
           Property(c => c.LogID).IsIdentity();
           Property(c => c.LogText).IsRequired();
           Property(c => c.Date);
       }
    }
}
